package io.gitee.twoke.generator.engine.impl.persistence.entity.data;

import io.gitee.twoke.generator.engine.impl.persistence.entity.Entity;

public interface DataManager<EntityImpl extends Entity> {
  
  EntityImpl create();

  EntityImpl findById(String entityId);
  
  void insert(EntityImpl entity);
  
  EntityImpl update(EntityImpl entity);

  void delete(String id);

  void delete(EntityImpl entity);

}
